export const columns = [
  {
    title: '序号',
    dataIndex: 'index',
    key: 'index'
  },
  {
    title: '用户名',
    dataIndex: 'username',
    key: 'username'
  },
  {
    title: '状态',
    dataIndex: 'status',
    key: 'status',
    sorter: (a, b) => a.status - b.status,
    align: 'center'
  },
  {
    title: '昵称',
    dataIndex: 'nickname',
    key: 'nickname'
  },
  {
    title: '手机号',
    dataIndex: 'phone',
    key: 'phone'
  },
  {
    title: '头像地址',
    dataIndex: 'imgUrl',
    key: 'imgUrl'
  },
  {
    title: '性别',
    dataIndex: 'sex',
    key: 'sex'
  },
  {
    title: '职级经验',
    dataIndex: 'intimacy',
    key: 'intimacy',
    sorter: (a, b) => a.intimacy - b.intimacy,
  },
  {
    title: '操作',
    dataIndex: 'action',
    key: 'action'
  }
]

export const sexMap = {
  1: '男',
  0: '女'
}

export const sexOptions = [
  {
    label: '全部',
    value: ''
  },
  {
    label: '男',
    value: 1
  },
  {
    label: '女',
    value: 0
  }
]

export const statusMap = {
  0: '初级销售',
  1: '中级销售',
  2: '高级销售',
  3: '店长',
}

export const statusOptions = [
  {
    label: '全部',
    value: ''
  },
  {
    label: '初级销售',
    value: 0
  },
  {
    label: '中级销售',
    value: 1
  },
  {
    label: '高级销售',
    value: 2
  },
  {
    label: '店长',
    value: 3
  }
]
